﻿using System;
using System.Windows.Forms;
using DevelopersToolbox.Properties;

namespace DevelopersToolbox {
    public partial class OptionsDialog : Form {
        public OptionsDialog() {
            InitializeComponent();
            _pluginOptions.Initialize(Settings.Default);
        }

        private void _ok_Click(object sender, EventArgs e) {
            _pluginOptions.UpdateSettingsWithValues(Settings.Default);
            Settings.Default.Save();
            DialogResult = DialogResult.OK;
            Close();
        }
    }
}
